
export const singer = state => state.singer;

// 播放组件数据获取
export const playing = state => state.playing;
export const fullScreen = state => state.fullScreen;
export const playList = state => state.playList;
export const sequenceList = state => state.sequenceList;
export const mode = state => state.mode;
export const currentIndex = state => state.currentIndex;
export const currentSong = (state) => {
  return state.playList[state.currentIndex] || {};
};

export const disc = state => {
  return state.disc;
};
export const topList = state => {
  return state.topList;
};

export const searchHistory = state => {
  return state.searchHistory;
};
export const playHistory = state => {
  return state.playHistory;
};
export const favoriteList = state => {
  return state.favoriteList;
};
